package com.hahaliu.hahaliu.controller.user;

import com.hahaliu.hahaliu.common.utils.RedisUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user/test")
@Api(tags = "用来测试的接口")
@Slf4j
public class TestController {
	@Autowired
	private RedisUtil redisUtil;

	@GetMapping("")
	@ApiOperation(value = "做一些事")
	public void getPersonal() {
		redisUtil.deleteKeysWithPrefix("danmu_idset:10");
	}
}
